package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 即将出库表 实体bean
 */
@TableName("t_outbound")
public class OutboundBean {
    /** 销售车ID */
    @TableId(value = "pk_outboundId",type = IdType.AUTO)
    private Integer outboundId;
    /** 商品外键ID */
    @TableField("fk_stockId")
    private String stockId;
    /** 出库数量 */
    @TableField("o_num")
    private Integer num=1;
    /** 销售员姓名 */
    @TableField("o_userName")
    private String userName;
    /** 商品实体Bean */
    @TableField(exist = false)
    private StockBean stockBean;

    public OutboundBean() {
    }

    public OutboundBean(String stockId, String userName) {
        this.stockId = stockId;
        this.userName = userName;
    }

    public Integer getOutboundId() {
        return outboundId;
    }

    public void setOutboundId(Integer outboundId) {
        this.outboundId = outboundId;
    }

    public String getStockId() {
        return stockId;
    }

    public void setStockId(String stockId) {
        this.stockId = stockId;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public StockBean getStockBean() {
        return stockBean;
    }

    public void setStockBean(StockBean stockBean) {
        this.stockBean = stockBean;
    }

    @Override
    public String toString() {
        return "OutboundBean{" +
                "outboundId=" + outboundId +
                ", stockId='" + stockId + '\'' +
                ", num=" + num +
                ", userName='" + userName + '\'' +
                ", stockBean=" + stockBean +
                '}';
    }
}
